

table = [];

i=0;

do
	filename = sprintf('%d_complexity_test.txt',i);
	i++;
	d = load(filename);
	row = [];
	avg = mean(d);
	row = [avg min(d(:,5)) max(d(:,5)) std(d(:,5))];
	table=[table;row];
until(i>9)


%even distr complexity
c = ((2 * table(:,1)./table(:,10)).^2).*(360);
area = sqrt(table(:,1).*table(:,2));

close all;
plot(area,table(:,5)) %Average
hold on;
plot(area,table(:,5),'o')
errorbar(area,table(:,5),table(:,15))

plot(area,table(:,14),'g') %Maximum

%plot(area,c,'-r') % Even grid
